<!DOCTYPE html>
<html>
<head>
<meta content="yes" name="apple-mobile-web-app-capable"/>
<meta content="yes" name="apple-touch-fullscreen"/>
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
<meta charset="utf-8" />
<title>红包雨</title>
<style>
	*{
		margin:0;
		padding: 0;
	}
	canvas{ 
		margin:0 auto;
	}
</style>
<script src="../../js/redcanvus/phaser.min.js"></script>

</head>
<body>
	<div id="gameContainer" style="width:100%;height:100%;"></div>
	<div id="mainIP" hidden="hidden"><%=httpUrl%>|<%=userid%></div>
	<script src="../../js/redcanvus/rain_game.js"></script>
	<script src="../../js/jquery.js"></script>
	<script src="../../js/plugins/layer/layer.js"></script>
</body>
<script>

	var connectIP = $("#mainIP").html();
    var ip =connectIP.split("|")[0];
    var userid=connectIP.split("|")[1];
    $(function(){
    	addCookies(userid);
    })


	function addCookies(userid){
        var time = new Date();
            time.setTime(time.getTime() + 1000*3600*24*100);//设置失效时间 100天
        document.cookie = 'userid=' + userid +';expires=' + time.toGMTString(); 
    }
</script>